package eerbaar.shared.internal.tree;

import eerbaar.shared.tree.IAttribute;

public class NullAttribute<T> implements IAttribute<T> {

    private final String key;

    private final Class<T> type;

    public NullAttribute(IAttribute<T> attribute) {
        this.key = attribute.getKey();
        this.type = attribute.getType();
    }

    public NullAttribute(String key, Class<T> type) {
        this.key = key;
        this.type = type;
    }

    @Override
    public IAttribute<T> copy() {
        return null;
    }

    @Override
    public String getKey() {
        return this.key;
    }

    @Override
    public T getValue() {
        return null;
    }

    @Override
    public Class<T> getType() {
        return this.type;
    }

}
